let isDev = process.env.NODE_ENV == 'development';

//src\router\index.js

import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

let arrRoute = [
  {
    path: '/',
    name: 'index',
    component: () => { return import('@/Views/index') }
  }
]

if (isDev) {
  arrRoute.push(
    {
      path: '/test',
      name: 'HelloWorld',
      component: () => { return import('@/components/HelloWorld') }
    }, {
    path: '/queryTablePage',
    name: 'queryTablePage',
    component: () => { return import('@/components/HelloWorld/queryTablePage.vue') }
  }, {
    path: '/uploadQiNiu',
    name: 'uploadQiNiu',
    component: () => { return import('@/components/HelloWorld/uploadQiNiu.vue') }
  }
  )

}

export default new Router({
  routes: arrRoute
})